d62aee954c8050fc58f4d9b4358d4025e5a51e20,platform/analysis-impl/src/com/intellij/codeHighlighting/RainbowHighlighter.java,RainbowHighlighter,calculateForeground,#String#,58
Before Change
if (!registryColors.isEmpty()) {
final List<Color> colors = registryColors.stream().map((s -> ColorUtil.fromHex(s.trim()))).collect(Collectors.toList());
if (!colors.isEmpty()) {
return colors.get(Math.abs(hash) % colors.size());
}
}
final float colors = 36.0f;
final float v = Math.round(Math.abs(colors * hash) / Integer.MAX_VALUE) / colors;
return Color.getHSBColor(v, 0.7f, .3f);
}
After Change
@NotNull
public Color calculateForeground(int colorIndex) {
return myRainbowColors.get(Math.abs(colorIndex) % myRainbowColors.size());
}
public int getColorsCount() {